import request from '@/utils/request';

// 标注详情页面相关接口
export function useToolsApi() {
  return {
    // 获取mcp列表
    getToolList: (params: any) => {
      return request({
        url: `/api/mcp/config/get`,
        method: 'get',
        params,
      });
    },
    // 创建mcp
    createTool: (data: any) => {
      return request({
        url: `/api/mcp/config/save`,
        method: 'post',
        data,
      });
    },
    // 删除mcp
    deleteTool: (params: any) => {
      return request({
        url: `/api/mcp/config/delete`,
        method: 'delete',
        params,
      });
    },
    // 导出mcp
    exportTool: () => {
      return request({
        url: `/api/mcp/config/export`,
        method: 'get',
      });
    },
  };
}
